FocusScope.of(context).unfocus()
/// Hide the soft keyboard. void hideKeyboard(BuildContext context) { FocusScope.of(context).requestFocus(FocusNode()); }